﻿<html window-icon="fav.ico" window-resizable="true">

<head>
  <title>ScAppEx</title>
  <script type="text/tiscript">
      function self.ready() {
        // 调整大小
        var (sx,sy,sw,sh) = view.screenBox(#workarea,#rectw);
        var (w,h) = self.$(body).box(#dimension);
        w = 618;
        h = 382;
        view.move( sx + (sw - w) / 2, sy + (sh - h) / 2, w, h);

        // 获取版本
        $(#version).text = NativeApi.getVer();

        // echo 测试
        $(#echo).html = view.frame.echo('welcome to use <span style="color:#f00;">ScAppEx</span>, enjoy it!');
      }    
    </script>
</head>

<body style="text-align:center;">
  <br />
  <br />
  <br />
  <br />
  <h1>Echo</h1>
  <h3><span id="echo"></span></h3>
  <p>Version: <span id="version"></span></p>
</body>

</html>